.686
.model flat,stdcall

public _ftol2
public _ftol2_sse
public _byteswap_ulong
public _byteswap_uint64

public _fseeki64
public _ftelli64

extern _ftol: near
extern fseek: near
extern ftell: near

.code
_ftol2:
_ftol2_sse:
    jmp _ftol

_byteswap_ulong:
    mov eax,  [esp + 4]
    bswap eax
    retn

_byteswap_uint64:
    mov     edx, [esp+4]
    mov     eax, [esp+8]
    bswap   edx
    bswap   eax
    retn

_fseeki64:
    mov eax, [esp + 10h]
    mov [esp + 0Ch], eax
    jmp fseek

_ftelli64:
    push dword ptr [esp+4]
    call ftell
    pop ecx
    cdq
    ret

end
